//
//  HMDoctorListCell.m
//  仿真项目开发
//
//  Created by LZH on 2017/3/22.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import "HMDoctorListCell.h"
#import "UIImageView+WebCache.h"

@interface HMDoctorListCell ()

//图片
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
//名字
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
//职位
@property (weak, nonatomic) IBOutlet UILabel *position;
//工作
@property (weak, nonatomic) IBOutlet UILabel *workPlace;
//锦旗
@property (weak, nonatomic) IBOutlet UILabel *flag;
//花
@property (weak, nonatomic) IBOutlet UILabel *flower;

@property (weak, nonatomic) IBOutlet UILabel *count;

@end
@implementation HMDoctorListCell



-(void)setDoctorModel:(HMDoctorListModel *)doctorModel{
    _doctorModel=doctorModel;
    
    self.nameLabel.text=doctorModel.doctor_name;
    self.workPlace.text=doctorModel.hospital_name;
    self.position.text=doctorModel.doctor_title_name;
    self.count.text = doctorModel.operation_count;
    self.flag.text=doctorModel.banner;
    self.flower.text=doctorModel.flower;
    
    
    
    //头像图片
    NSURL*url=[NSURL URLWithString:doctorModel.doctor_portrait];
    [self.iconImage sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"doctor_defaultphoto_male"]];
    
    
}

@end
